package com.gdth.widget.dwonloadlist;

import com.gdth.R;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

public class DrawDownListEditText extends BaseDownListEditText{
	
	public TextView txt_label;
	
	public DrawDownListEditText(Context context) {
		super(context, R.layout.widget_drawdownlist_edittext_label);
	}
	
	public DrawDownListEditText(Context context, AttributeSet attrs) {
		super(context, attrs, R.layout.widget_drawdownlist_edittext_label);
	}
	
	public DrawDownListEditText(Context context, int layout) {
		super(context, layout);
	}
	
	public DrawDownListEditText(Context context, AttributeSet attrs, int layout) {
		super(context, attrs, layout);
	}
	
	@Override
	public void initView(){
		super.initView();
		
        txt_label = (TextView) findViewById(R.id.widget_drawdownlist_label);
	}
	
	public void setLabel(String label) {
		txt_label.setText(label);
	}
	
	public void setLabel(int label){
		txt_label.setText(context.getResources().getString(label));
	}
}
